.datemenu-today-button,
.world-clocks-button,
.weather-button,
-.message-list-section-title {
+.events-section-title {
border-radius: 4px;
padding: .4em; }
.world-clocks-button:focus,
.weather-button:hover,
.weather-button:focus,
-.message-list-section-title:hover,
-.message-list-section-title:focus {
+.events-section-title:hover,
+.events-section-title:focus {
background-color: #0d0d0d; }
.datemenu-today-button:active,
.world-clocks-button:active,
.weather-button:active,
-.message-list-section-title:active {
+.events-section-title:active {
color: white;
background-color: #215d9c; }
.world-clocks-header,
.weather-header,
-.message-list-section-title {
+.events-section-title {
color: #999999;
font-weight: bold; }
-Subproject commit 8001b92b5ef26cb8ea5674c72beed6a4a6439e89
+Subproject commit 7f6d89bfcd5fa1c4238eed83dcab75949df72a4d
.datemenu-today-button,
.world-clocks-button,
.weather-button,
-.message-list-section-title {
+.events-section-title {
border-radius: 4px;
padding: .4em; }
.world-clocks-button:focus,
.weather-button:hover,
.weather-button:focus,
-.message-list-section-title:hover,
-.message-list-section-title:focus {
+.events-section-title:hover,
+.events-section-title:focus {
background-color: #454c4c; }
.datemenu-today-button:active,
.world-clocks-button:active,
.weather-button:active,
-.message-list-section-title:active {
+.events-section-title:active {
color: white;
background-color: #215d9c; }
.world-clocks-header,
.weather-header,
-.message-list-section-title {
+.events-section-title {
color: #8e8e80;
font-weight: bold; }
this._desktopSettings.connect('changed', Lang.bind(this, this._reloadEvents));
this._eventSource = new EmptyEventSource();
- this.parent('');
+ this.parent();
+
+ this._title = new St.Button({ style_class: 'events-section-title',
+ label: '',
+ x_align: St.Align.START,
+ can_focus: true });
+ this.actor.insert_child_below(this._title, null);
+
+ this._title.connect('clicked', Lang.bind(this, this._onTitleClicked));
+ this._title.connect('key-focus-in', Lang.bind(this, this._onKeyFocusIn));
Shell.AppSystem.get_default().connect('installed-changed',
Lang.bind(this, this._appInstalledChanged));
},
_updateTitle: function() {
- if (isToday(this._date)) {
- this._title.label = _("Events");
+ this._title.visible = !isToday(this._date);
+
+ if (!this._title.visible)
return;
- }
let dayFormat;
let now = new Date();
},
_onTitleClicked: function() {
- this.parent();
+ Main.overview.hide();
+ Main.panel.closeCalendar();
let app = this._getCalendarApp();
if (app.get_id() == 'evolution.desktop')
Extends: MessageList.MessageListSection,
_init: function() {
- this.parent(_("Notifications"));
+ this.parent();
this._sources = new Map();
this._nUrgent = 0;
message.notification.acknowledged = true;
},
- _onTitleClicked: function() {
- this.parent();
-
- let app = Shell.AppSystem.get_default().lookup_app('gnome-notifications-panel.desktop');
-
- if (!app) {
- log('Settings panel for desktop file ' + desktopFile + ' could not be loaded!');
- return;
- }
-
- app.activate();
- },
-
_shouldShow: function() {
return !this.empty && isToday(this._date);
- },
-
- _sync: function() {
- this.parent();
- this._title.reactive = Main.sessionMode.allowSettings;
}
});
const MessageListSection = new Lang.Class({
Name: 'MessageListSection',
- _init: function(title) {
+ _init: function() {
this.actor = new St.BoxLayout({ style_class: 'message-list-section',
clip_to_allocation: true,
x_expand: true, vertical: true });
- this._title = new St.Button({ style_class: 'message-list-section-title',
- label: title,
- can_focus: true,
- x_expand: true,
- x_align: St.Align.START });
- this.actor.add_actor(this._title);
-
- this._title.connect('clicked', Lang.bind(this, this._onTitleClicked));
- this._title.connect('key-focus-in', Lang.bind(this, this._onKeyFocusIn));
this._list = new St.BoxLayout({ style_class: 'message-list-section-list',
vertical: true });
this._sync();
},
- _onTitleClicked: function() {
- Main.overview.hide();
- Main.panel.closeCalendar();
- },
-
_onKeyFocusIn: function(actor) {
this.emit('key-focus-in', actor);
},
Extends: MessageList.MessageListSection,
_init: function() {
- this.parent(_("Media"));
+ this.parent();
this._players = new Map();